package com.jt.www.enums.endorse;

/**
 * @author admin_ltf
 * @create 2019-06-18 17:11
 */

public enum PdTypeEnum {

    value1("01", "no"),
    value2("02", "sub"),
    value3("03", "add"),
    value4("04", "sub"),
    value5("05", "add"),
    value6("06", "sub"),
    value7("10", "no"),
    value8("11", "add"),
    value9("12", "sub"),
    value10("13", "add"),
    value11("14", "sub");


    private String pdType;
    private String value;

    PdTypeEnum(String pdType, String value) {
        this.pdType = pdType;
        this.value = value;
    }

    public static String getValueByPdType(String pdType) {
        String value = "";
        for (PdTypeEnum pdTypeEnum : PdTypeEnum.values()) {
            if (pdType.equals(pdTypeEnum.pdType)) {
                value = pdTypeEnum.value;
                break;
            }
        }
        return value;
    }

    public String getPdType() {
        return pdType;
    }

    public void setPdType(String pdType) {
        this.pdType = pdType;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
